import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { join } from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': join(__dirname, "src"),
    }
  },
  hmr: true,
  server: {
    host: "0.0.0.0",
    port: 5050,
    proxy: {
      "/api": {
        // target: "http://127.0.0.1:6565",
		changeOrigin: true,
      }
    }
  }
})
